<?php 

return [
    'hello' => 'Hello World!',
    'user' => [
        'login_username' => 'Username is required', 
        'login_password' => 'Password is required',
        'login_info_fail' => 'Incorrect username or password',
        'login_captcha_fail' => 'Image verification code is incorrect or expired',
        "user_empty" => 'User does not exist',
        'register_already' => 'Email or phone number is already registered',
        'register_fail' => 'Registration failed',
        'validate' => [
            'username' => 'Username is required',
            'password' => 'Password is required',
            'email' => 'Invalid email format',
            'phone' => 'Invalid phone number format',
            'captcha' => 'Verification code is required',
            "code" => "Image verification code is required",
            "uuid" => "Image verification code UUID must not be empty",
            "type" => "Verification code type must not be empty",
            "scene" => "Verification code scene must not be empty",
            "newNickNameRequire" => 'the new nickname is required',
            "newNickNameTooLong" => 'The new nickname can not exceed 60 characters',
        ],
        'upload_lack_file' => 'lack of the upload file',
    ],
    'captcha' => [
        'img_captcha_fail' => 'Image verification code is incorrect or expired',
        'captcha_expire' => 'Verification code has expired',
        'send_captcha_limit' => 'Send verification code too frequently, please try again later',
        'captcha_wrong' => 'Verification code is incorrect',
    ],
    'common' => [
        'param_error' => 'Parameter error', 
        "success" => 'Success',
        "fail"=>'fail',
        "mail_success" => 'Email sent successfully',
        "mail_fail" => 'Email sending failed, please check the log',
    ],
    'device'=>[
        'device_exist' => 'The device already exists',
        'device_not_exist' => 'The device not exists',
        'device_not_belong' => 'The device does not belong to you',
        'validate'=>[
            'device_id_require' => 'Device ID is required',
            'device_id_length' => 'Device ID must be between 1-60 characters',
            'device_name_require' => 'Device name is required',
            'device_name_length' => 'Device name must be between 1-60 characters',
            'device_type_require' => 'Device type is required',
            'device_type_length' => 'Device type must be between 1-30 characters',
            'device_sub_type_require' => 'Device sub-type is required',
            'device_sub_type_length' => 'Device sub-type must be between 1-20 characters',
            'hard_version_require' => 'Hardware version is required',
            'hard_version_length' => 'Hardware version must be between 1-20 characters',
        ]
    ]
];